package com.example.football.controller;

import com.example.football.pojo.People;
import com.example.football.pojo.Peopleliketeam;
import com.example.football.pojo.Result;
import com.example.football.service.NewsServiceImpl;
import com.example.football.service.ScheduleServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AppNewsController {
    @Autowired
    private NewsServiceImpl newsService;

    @PostMapping("/APPnews")
    public Result news(@RequestBody People id){
        return newsService.showNews(id);
    }
}
